/**
 * 判断是否是移动端
 *
 * @return {boolean} true: mobile; false: pc;
 */
export const isMobile = () => {
  const { userAgent } = window.navigator;
  return /(AppleWebKit.*Mobile.*|mobile|android|iphone|ipad|blackberry|hp-tablet|symbian|phone|windows\sphone)/i.test(
    userAgent,
  );
};
